package com.pand.model.user;

import com.pand.model.BaseObject;

import javax.persistence.*;

/**
 * 
 * @ClassName: UserRole 
 * @Description: 用户与角色关系表
 *
 */
@Entity
@Table(name = "SYS_USER_ROLE")
@SequenceGenerator(name="UserRoleIdSEQ", sequenceName="SEQ_USER_ROLE",allocationSize=1)
public class UserRole extends BaseObject {
	
 	/** 
	 * @Fields serialVersionUID : 
	 */ 
	private static final long serialVersionUID = 1L;
	
	/**
	 * 角色ID
	 */
	private Long roleId;
	
	/**
	 * 用户id
	 */
	private Long userId;
	
	/**
	 * 主键
	 */
 	private Long id;
 	
 	
 	@Id
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name = "USER_ID")
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name = "ROLE_ID")
	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

}
